package com.hnevc.yourhealthmanager.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnevc.yourhealthmanager.entity.HealthUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface HealthUserMapper extends BaseMapper<HealthUser> {
   @Select("SELECT * FROM health_user_table WHERE user_phone = #{userPhone} AND password = #{password}")
   HealthUser selectUserByUserPhoneAndPassword(@Param("userPhone") String userPhone, @Param("password") String password);
    @Select("SELECT * FROM health_user_table WHERE user_phone = #{username} AND password = #{password}")
    HealthUser selectUserByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
}